import request from '@/utils/request'

let homeApi = {
  getBusiness(data) {
    return request({
      url: `/merchant/v2/business`,
      method: 'get',
      params: data
    })
  },
  sale() {
    return request({
      url: `/merchant/v2/stock/sale`,
      method: 'get',
      
    })
  },
  todo() {
    return request({
      url: `/merchant/v2/todo`,
      method: 'get',
      
    })
  },


    connection() {
    return request({
      url: `/merchant/v2/connection`,
      method: 'get',
      
    })
  },
  huantype() {
     return request({
      url: `/merchant/v2/stock/type`,
      method: 'get',
      
    })
  },

   getView() {
     return request({
      url: `/merchant/v2/stock/view`,
      method: 'get',
      
    })
  },

     notice() {
     return request({
      url: `/merchant/v2/notice`,
      method: 'get',
      
    })
  },

      financial(data) {
     return request({
      url: `/merchant/v2/financial`,
      method: 'get',
      params: data
    })
  },

       platformData() {
     return request({
      url: `/merchant/v2/platformData`,
      method: 'get',
      
    })
  },


  baseNotice(data) {
    return request({
      url: `/system/notice/baseNotice`,
      method: 'get',
 params: data
    })
  },

    setRice(data) {
      return request({
        url: `/business/discount/set`,
        method: 'post',
      data: data
      })
  },


      expireSoonIndex() {
      return request({
        url: `/merchant/v2/service/expireSoon`,
        method: 'get'
      })
  },
}
export default homeApi